import request from '@/utils/request'

export function page() {
  return request({
    url: 'emps/page',
    method: 'get'
  })
}

//分页查询
export function getByBookQPageQuer(){
  return request({
      'url' : 'emps/page ',
      'method' :'get',
      'params' : params
  })
}
  
export function add(emp) {
  return request({
    url: '/emps',
    method: 'post',
    data: emp
  })
}

export function update(emp) {
  return request({
    url: '/emps/update',
    method: 'put',
    data: emp
  })
}


export function deleteById(id) {
  return request({
    url: '/emps/'+id,
    method: 'delete',
  })
}


export function selectByName(name) {
  return request({
    url: '/emps/name'+name,
    method: 'get',
  })
}

